package com.gitee.designpattern.strategy;

import java.math.BigDecimal;

/**
 * 白银用户支付策略
 *
 * @author codeboy zhou
 */
@UserVipLevel(UserVipLevelEnum.SILVER)
public class SilverUserPaymentStrategy implements UserPaymentStrategy {
    @Override
    public BigDecimal needPay(BigDecimal originalMoney) {
        return originalMoney.multiply(BigDecimal.valueOf(0.8));
    }
}
